package com.suny.sf_server.controller;

import com.suny.sf_server.service.CityService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.suny.result.R;
@Tag(name = "省县区", description = "城市获取接口")
@RestController
@RequestMapping("/city")
public class CityController {
    @Resource
    private CityService cityService;
    @Operation(summary = "获取城市列表")
    @GetMapping("/getAllCity")
    public R list() {
        return R.OK(cityService.getCityList());
    }
}
